package cn.tedu.v1.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.web.multipart.MultipartFile;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

@Data
@Accessors(chain = true)
public class PatientVo {


    private Integer id;

    @NotBlank(message = "患者不能为空")
    @Pattern(regexp ="[a-zA-Z0-9]{4,13}",message ="用户名4-13位数字或字母")
    private String name;


    @NotBlank(message = "电话不能为空")
    @Pattern(regexp ="[a-zA-Z0-9]{6,13}",message ="密码6-13位数字或字母")
    private String phone;

    @NotBlank(message = "身份证号码不正确")
    private String idCard;


    @NotNull(message = "请选择主治医师")
    private Integer doctorId;

    @NotNull(message = "请选择科室")
    private Integer departmentId;

    private MultipartFile headImg;

    @NotBlank(message = "请简要填写病历")
    private String history;

    @NotBlank(message = "请选择性别")
    private String gender;
}
